<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class Admin extends Model
{
    protected $table='admin';
    protected $primaryKey='id';
    public $timestamps=false;
    protected $guarded=[];

    public function role()
    {
        return $this->belongsToMany('App\Admin\Role','arole','user_id','role_id');
    }
}
